]> dgit.raspbian.org Git - gnome-shell.git/commit
breakManager: Update manager state after settings change
authorPhilip Withnall <pwithnall@gnome.org>
Wed, 2 Apr 2025 11:32:40 +0000 (12:32 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 11 Apr 2025 13:18:48 +0000 (13:18 +0000)
commit76882225a40abfd15c67a031c898c2368e9edde5
treebcd9b1f1dc7dd5697bb796f4684a79a6852c264f
parent8f16cdff879f28acf084aa7c241843dedb0cce82
breakManager: Update manager state after settings change

The change of settings may have affected when a break is due. In
particular, `this._breakLastEnd` is modified in `_updateSettings()`,
but `this._state` is not modified correspondingly to transition to/from
a `BREAK_DUE` state (if appropriate).

This could be the cause of the `breakDueAgo should be non-negative`
assertion failure from #8280.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8280
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3687>
js/misc/breakManager.js